package cn.sciento.gateway;

import cn.sciento.autoconfigure.gateway.EnableSTongGateway;
import cn.sciento.common.STongService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**

 * @date 2019/9/9
 * @project stong-gateway
 */
@SpringBootApplication
@EnableSTongGateway
@EnableDiscoveryClient
public class GatewayApplication {

    public static void main(String[] args) {
        try {
            new SpringApplicationBuilder(GatewayApplication.class)
                    .web(WebApplicationType.REACTIVE)
                    .run(args);
        }catch (Throwable e){
            e.printStackTrace();
        }
//        SpringApplication.run(GatewayApplication.class,args);

    }
}
